import request from "@/utils/request"

/**
 * 获取店铺列表
 * @param params 查询参数
 */
export const getShopList = (params?: PaginateQuery<IShop>) => {
  return request.get<PaginateResponse<IShop>>('dd_ddgl/business/shopList', { params })
}

/**
 * 取消店铺绑定
 * @param shop_id 店铺ID
 */
export const unbindShop = (shop_id: number) => {
  return request.post('dd_ddgl/business/chanelBind', { shop_id })
}

/**
 * 获取店铺授权地址
 */
export const getAuthUri = () => {
  return request.get<IResponse<string>>('dd_ddgl/dou_dian/getAuthUri')
}
